<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<t:body title="title">
	<div class="form_block">
	    <c:forEach items="${users}" var="user">
	        <div class="form_row">
	         	<div class="last_cell">
	            	<c:url value="/user/${user.id}/delete" var="url"/>
	                <a href="${url}">Удалить</a>
	            </div>
	            <div class="middle_cell">
		            <c:url value="/group/${user.group.id}/edit" var="url"/>
	                <a href="${url}"><c:out value="${user.group}"/> </a>
	            </div>
	            <div class="first_cell">
	            	<c:url value="/user/${user.id}" var="url"/>
	                <a href="${url}">
	                    <c:out value="${user.lastName}"/> <c:out value="${user.firstName}"/> <c:out value="${user.patrName}"/>
	                </a>
	            </div>
	            
	        </div>
	    </c:forEach>
	</div>
	<div style="clear: both; float: left;">
		<c:url value="/user/new" var="url"/>
		<a href="${url}">Создать нового пользователя</a>
		<c:url value="/group/list" var="url"/>
		<a href="${url}">К списку групп</a>
	</div>
</t:body>
